$OpenBSD: patch-aclocal_m4,v 1.1.1.1 2016/04/05 23:30:54 jca Exp $
--- aclocal.m4.orig	Sat Aug 22 17:55:02 2015
+++ aclocal.m4	Fri Feb 19 01:41:57 2016
@@ -127,10 +127,13 @@ then AT_WITH_QT
      # MacOS specific: (FIXME! shouldn't we be using qmake -query everywhere?)
      QT_FRAMEWORKS_PATH=`$QMAKE -query QT_INSTALL_LIBS`
      QT_PLUGINS_PATH=`$QMAKE -query QT_INSTALL_PLUGINS`
-     if [[[ $QT_CFLAGS =~ mmacosx-version-min= ]]]
-     then MACOSX_DEPLOYMENT_TARGET="${QT_CFLAGS#*mmacosx-version-min=}" 
+     case "$QT_CFLAGS" in
+     *mmacosx-version-min=*)
+        MACOSX_DEPLOYMENT_TARGET="${QT_CFLAGS#*mmacosx-version-min=}" 
         MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET%% *}
-     fi
+        ;;
+     *) ;;
+     esac
      AC_SUBST(MACOSX_DEPLOYMENT_TARGET)
 else
     #windows part
